package Main_logic;

import java.util.Scanner;

public class User_1 {

    public static User login() {
        System.out.println("亲输入你的名字");
        Scanner scanner = new Scanner(System.in);
        String name = scanner.nextLine();
        System.out.println("欢迎" + name + "进入图书馆");
        int option = scanner.nextInt();
        if (option == 1) {//管理员
            return new Manage_user(name);
        } else {//普通ren
            return new Common_user(name);
        }
    }

    public static void Run(User user) {
        user.menu();//打印菜单
    }

    public static void main(String[] args) {
//        User user = new User("hh");
        //user = login();
        //Run(user);
    }
}
